import os.path
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
#from tornado.options import define,options
class IndexHandler(tornado.web.RequestHandler):
    def get(self):
        self.render('child_main.html',header_text="Head goes here",\
        footer_text="footer goes here")

if __name__=="__main__":
    application=tornado.web.Application(handlers=[(r'/', IndexHandler),],\
    template_path=os.path.join(os.path.dirname(__file__), "templates"),debug=True)
    http_server = tornado.httpserver.HTTPServer(application)      
    http_server.listen(8000)
    tornado.ioloop.IOLoop.instance().start()